package com.yonyou.crm.sact.schedule.rmimpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yonyou.crm.sact.schedule.entity.ScheduleCommentVO;
import com.yonyou.crm.sact.schedule.entity.ScheduleGoodjobVO;
import com.yonyou.crm.sact.schedule.entity.ScheduleVO;
import com.yonyou.crm.sact.schedule.rmitf.IScheduleRmService;
import com.yonyou.crm.sact.schedule.service.ScheduleBizServiceImpl;
import com.yonyou.crm.sact.schedule.service.ScheduleCommentBizServiceImpl;
import com.yonyou.crm.sact.schedule.service.ScheduleGoodjobBizServiceImpl;
import com.yonyou.crm.sprc.opportunity.service.OpportunityBizServiceImpl;



@Service("scheduleService")
public class ScheduleRmServiceImpl implements IScheduleRmService {

	@Autowired
	private ScheduleBizServiceImpl bizService;
	@Autowired
	private ScheduleCommentBizServiceImpl commentService;
	@Autowired
	private ScheduleGoodjobBizServiceImpl goodjobService;
	@Autowired
	private OpportunityBizServiceImpl opportunityService;
	
	public List<ScheduleVO> getScheduleList(Map<String, Object> paraMap) {
		return bizService.getScheduleList(paraMap);
	}
	
	public List<String> getScheduleDateList(Map<String, Object> paraMap){
		return bizService.getScheduleDateList(paraMap);
	}
	
	@Override
	public List<ScheduleCommentVO> getCommentList(Map<String, Object> paraMap) {
		return commentService.getList(paraMap);
	}

	@Override
	public List<ScheduleGoodjobVO> getGoodjobList(Map<String, Object> paraMap) {
		return goodjobService.getList(paraMap);
	}

	@Override
	public List<ScheduleCommentVO> deleteCommentByIDs(String[] ids,
			Map<String, Object> paraMap) {
		commentService.deleteCommentByIDs(ids);
		return commentService.getList(paraMap);
	}

	@Override
	public List<ScheduleGoodjobVO> deleteGoodjobByIDs(String[] ids,
			Map<String, Object> paraMap) {
		goodjobService.deleteGoodjobByIDs(ids);
		return goodjobService.getList(paraMap);
	}

	@Override
	public List<Map<String, Object>> getCumVisitFinishedList(Long id, Long objType, Long objBiztype, String scheduleType) {
		return bizService.getCumVisitFinishedList(id, objType, objBiztype, scheduleType);
	}
	
}
